import request from "../../../utils/request";
import { Agritainment, agritainmentFormData, AgritainmentResponseData } from "./type";
enum API {
    // 获取农家乐信息 POST
    GETAGRITAINMENTINFO_URL = '/farmInfo/selectFarmInfoPage',
    // 新增 编辑 农家乐信息 POST
    OPERATEAGRRITAINMENTINFO_URL = '/farmInfo/farmInfoAdit',
    // 删除 农家乐信息 POST
    DELETEAGRITAINMENT_URL = '/farmInfo/farmInfoDel'
}
export const reqGetAgritainmentInfo = (data: agritainmentFormData) => request.post<any, AgritainmentResponseData>(API.GETAGRITAINMENTINFO_URL, data)
export const reqOperateAgritainmentInfo = (data: Agritainment) => request.post<any, any>(API.OPERATEAGRRITAINMENTINFO_URL, data)
export const reqDeleteAgritainmentInfo = (data: Agritainment) => request.post<any, any>(API.DELETEAGRITAINMENT_URL, data)